package com.skyworth.ui.blurbg;

import android.content.Context;
import android.graphics.Color;
import android.util.AttributeSet;
import android.view.ViewGroup;
import android.widget.FrameLayout;

/**
 * Created by lu on 2018/1/22.
 */

public class CommonBlurBG extends BlurBgLayout {
    public CommonBlurBG(Context context) {
        super(context);
        initView();
    }

    public CommonBlurBG(Context context, AttributeSet attrs) {
        super(context, attrs);
        initView();
    }

    public CommonBlurBG(Context context, AttributeSet attrs, int defStyle) {
        super(context, attrs, defStyle);
        initView();
    }

    private void initView() {
        FrameLayout coverBG = new FrameLayout(getContext());
        coverBG.setBackgroundColor(Color.argb(10, 255, 255, 255));
        addView(coverBG, new FrameLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT));
        setPageType(PAGETYPE.SECONDE_PAGE);
        setAlpha(0.95f);
    }
}